package com.rightsidetech.commom.exception;


import com.rightsidetech.commom.enums.CodeIdEnum;

/**
 * 参数缺省异常
 *
 * @author
 */
public class ParaException extends Exception {

    private static final long serialVersionUID = 1L;
    private CodeIdEnum errorCodeEnum;
    public ParaException() {

    }
    public ParaException(CodeIdEnum errorCodeEnum) {
        super(errorCodeEnum.getName());
        this.setErrorCodeEnum(errorCodeEnum);
    }

    public ParaException(String message) {
        super(message);
    }
    public CodeIdEnum getErrorCodeEnum() {
        return errorCodeEnum;
    }

    public void setErrorCodeEnum(CodeIdEnum errorCodeEnum) {
        this.errorCodeEnum = errorCodeEnum;
    }
}

